// 触发render渲染 更新组件
import { useState } from 'react';

const useUpdate = () => {
    const [status, setStatus] = useState(true);
    return () => setStatus(!status);
};

export default useUpdate;
